package com.wx.feign.order.clients;

import com.wx.commons.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 王霄
 * @date: 2022/1/5 12:52
 **/
@Component
@FeignClient(value = "paymentServer")
public interface PaymentClient {

    @GetMapping(value = "/payment/queryById/{id}")
    R<?> queryById(@PathVariable("id") long id);

    @GetMapping(value = "/payment/queryByIdTimeout/{id}")
    R<?> queryByIdTimeout(@PathVariable("id") long id);
}
